package com.hspedu.poly;

public class Poly01 {
    public static void main(String[] args) {

        Master ljt = new Master("刘金涛");

        Dog dog = new Dog("高晶晶");
        Bone bone = new Bone("大棒骨");
        ljt.feed(dog, bone);

        Cat cat = new Cat("冯捷");
        Fish fish = new Fish("黄花鱼");
        ljt.feed(cat, fish);

        Pig pig = new Pig("高国伟");
        Rice rice = new Rice("大米饭");
        ljt.feed(pig, rice);
    }
}
